package day4;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class GetMax {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int sum = 0;
        for (int i = 1; i <= 10; i++) {
            System.out.println("输入第" + i + "个数：");
            int a = in.nextInt();
            if (i == 1) {
                sum = a;
            } else {
                sum = sum > a ? sum : a;
            }
        }
        System.out.println("输入的最大数：" + sum);
    }
}
